package com.xhwl.logistics.service;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xhwl.common.pojo.cent.vehicle.VehcPassage;
import com.xhwl.common.query.cent.vehicle.PassageQuery;
import com.xhwl.common.vo.cent.vehicle.PassageVO;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author Lu.Aaron
 * @since 2021-02-08
 */
//@RestController
public interface IVehcPassageService extends IService<VehcPassage> {
    @RequestMapping(value = "/passage-service/add", method = RequestMethod.POST)
    void add(@RequestPart("passageVO") PassageVO passageVO, Short industryId);

    @RequestMapping(value = "/passage-service/update", method = RequestMethod.POST)
    void edit(@RequestPart("passageVO") PassageVO passageVO, Short industryId);

    @RequestMapping(value = "/passage-service/delete", method = RequestMethod.POST)
    void delete(@RequestParam("id") Integer id, Short industryId);

    @RequestMapping(value = "/passage-service/page", method = RequestMethod.POST)
    Page<VehcPassage> passagePage(@RequestPart("passageQuery") PassageQuery passageQuery);

    @RequestMapping(value = "/passage-service/list", method = RequestMethod.POST)
    List<VehcPassage> list(@RequestPart("passageQuery") PassageQuery passageQuery);
}
